package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工单对象 water_work_order
 *
 * @author ruoyi
 * @date 2025-09-18
 */
public class WaterWorkOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long orderId;

    /** 工单编号 */
    @Excel(name = "工单编号")
    private String orderNumber;

    /** 工单类型：1,报装、2,维修、3,投诉、4,咨询、5,其他 */
    @Excel(name = "工单类型：1,报装、2,维修、3,投诉、4,咨询、5,其他")
    private Long orderType;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    /** 工单标题 */
    @Excel(name = "工单标题")
    private String title;

    /** 工单描述 */
    @Excel(name = "工单描述")
    private String description;

    /** 优先级：1,低、2,中、3,高 */
    @Excel(name = "优先级：1,低、2,中、3,高")
    private Long priority;

    /** 状态：1,已创建、2,处理中、3,已解决、4，已关闭、5，已取消 */
    @Excel(name = "状态：1,已创建、2,处理中、3,已解决、4，已关闭、5，已取消")
    private Long status;

    /** 指派给（员工ID） */
    @Excel(name = "指派给", readConverterExp = "员=工ID")
    private Long assignedTo;

    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setOrderNumber(String orderNumber)
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber()
    {
        return orderNumber;
    }
    public void setOrderType(Long orderType)
    {
        this.orderType = orderType;
    }

    public Long getOrderType()
    {
        return orderType;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setPriority(Long priority)
    {
        this.priority = priority;
    }

    public Long getPriority()
    {
        return priority;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setAssignedTo(Long assignedTo)
    {
        this.assignedTo = assignedTo;
    }

    public Long getAssignedTo()
    {
        return assignedTo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("orderId", getOrderId())
                .append("orderNumber", getOrderNumber())
                .append("orderType", getOrderType())
                .append("userId", getUserId())
                .append("title", getTitle())
                .append("description", getDescription())
                .append("priority", getPriority())
                .append("status", getStatus())
                .append("assignedTo", getAssignedTo())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
